package cn.xxm.scene;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

public class Test {
    public static void main(String[] args) {
        boolean[] flags = {false};
        List<String> stringList = Arrays.asList("1","2","3");
        stringList.forEach(item -> {
            if(flags[0]){
                System.out.println(flags[0]);
            }
            flags[0] = !flags[0];
        });



    }
}
